package com.nbgroup.dao;

import com.nbgroup.entity.Role;
import com.nbgroup.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * Created by 18545 on 2019/7/10.
 */
public interface RoleRepositoty extends JpaRepository<Role, Long>, JpaSpecificationExecutor<Role>, PagingAndSortingRepository<Role, Long> {
    Role findByNameAndSts(String name ,String sts);
}
